#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "../include/phone.h"
#include "../include/func.h"



/*链表头*/
PHONE *phone_head;


int main(int argc, char *argv[])
{
    int ret;
    /*初始化链表头*/
    init(&phone_head);
    /*设置了密码，需要判断是否输入密码正确*/
    ret = login_menu();
    if(ret == 0)
    {   
        /*密码正确，输出提示，展示功能页面*/
        printf("thanks for your use!\n");
        getchar();
        //getchar();
        /*显示功能页面*/
        management(phone_head);    
    }
    else if(ret == -1)
    {
        printf("password error, quit now!!!\n");
        return (-1);
    }
}









